<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head><script>
class Person{
	constructor(name,age,gender){
		this.name=name;
		this.age=age;
		this.gender=gender;
	}
	dance(){console.log("i can dance");
			

		   }
	sing(){
		console.log("i can sing");
	}
}
	var p= new  Person('zahng',19,'male');
	console.log(p.name);
	p.dance();
</script>
<body>
</body>
</html>
